<extend name="Base/common"/>
<block name="head_css">
<link href="__PUBLIC__/Green/css/usercenter.css" rel='stylesheet' type='text/css' />
</block>
<block name="head_script">
    <script type="text/javascript" src="__PUBLIC__/Green/js/usercenter.js"></script>
</block>
<block name="body">
    <div class="width1000">
           <div class="top_tit">
            <a href="{:U('User/index')}">用户中心</a> &gt;&gt; 订单管理
        </div>
        <div class="clearfix relative">
            <include file="User/nav" />
            <div class="user_center">
                <div class="user_order">
                <empty name="orders">
                    <div class="empty_div" style="text-align: center">
                       
                        	
                           <div style="margin-top: 30px;font-size: 16px;"><img alt="" src="__PUBLIC__/Green/images/no_order.png"><span style="padding-left: 10px;">暂无生效的保单</span> </div>
                            	
                           <div style="margin-top: 20px;font-size: 16px;"> <a href="{:U('Insurance/index')}" class="i_add buy_btn">立即购险</a></div>
                       </div> 
                <else />
                <volist name="orders" id="order">
                    <div class="user_order_list">
                        <div class="user_order_list_top">
                            <div class="span1 f_l user_order_top_carno">{$order.car_no}</div>
                            <div class="span4 f_l">订单号：{$order.c_order_no}</div>
                            <div class="span4 f_l"> 保单有效期：{$order.start_date}至{$order.end_date}</div>
                            <div class="span1 f_l user_order_top_money">￥{$order['n_real_amt']+$order['n_traff_real_prm']+$order['n_tax_real_prm']}</div>
                            <div class="clear"></div>
                        </div>

                        <div class="user_order_list_main clearfix">
                            <div class="span2 f_l">
                                商业险
                            </div>
                            <div class="span2 f_l">
                                ￥{$order.n_real_amt}
                            </div>
                            <div class="span3 f_l">
                                &nbsp;
                            </div>
                            <div class="span1 f_l">
                                <a href="{:U('User/orderDetail',array('id' => $order['targetid'],'type'=>1))}" class="order_convey">查询详情</a>
                            </div>
                            <div class="span2 f_l t_r">
                                <if condition="$order.status eq 1">
                                    <a href="javascript:void(0);" class="has_pay">已支付</a>
                                <else />
                                    <a href="{$Think.config.CIC_PAY_URL}{$order.order_no}" class="no_pay">未支付</a>
                                </if>
                            </div>
                        </div>
                        <div class="user_order_list_main clearfix">
                            <div class="span2 f_l">
                                交强险
                            </div>
                            <div class="span2 f_l">
                                ￥{$order.n_traff_real_prm}
                            </div>
                            <div class="span3 f_l">
                                &nbsp;
                            </div>
                            <div class="span1 f_l">
                                <a href="{:U('User/orderDetail',array('id' => $order['targetid'],'type'=>2))}" class="order_convey">查询详情</a>
                            </div>
                            <div class="span2 f_l t_r">
                               &nbsp;
                            </div>
                        </div>
                        <div class="user_order_list_main clearfix">
                            <div class="span2 f_l">
                                车船税
                            </div>
                            <div class="span2 f_l">
                                ￥{$order.n_tax_real_prm}
                            </div>
                            <div class="span3 f_l">
                                &nbsp;
                            </div>
                            <div class="span1 f_l">
                                &nbsp;
                            </div>
                            <div class="span2 f_l t_r">
                               &nbsp;
                            </div>
                        </div>
                    </div>
                </volist>
                <if condition="count($orders) elt 1">
                <div class="empty_div">&nbsp;</div>
                </if>
                <div class="onethink pagination pagination-right">
                {$_page}
                </div>
                </empty>
                </div>
            </div>
        </div>
    </div>
</block>    
<block name="script">
<script type="text/javascript" src="__PUBLIC__/Green/js/insurance.js"></script>
<script type="text/javascript">
    highlight_nav("{:U('User/order')}");
</script>
</block>
